package com.ls.jdbc.c3p0;

import com.mchange.v2.c3p0.ComboPooledDataSource;

import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;

public class Main {
    public static void main(String[] args) throws SQLException {


        DataSource ds = new ComboPooledDataSource("otherc3p0");

        Connection connection = ds.getConnection();
        System.out.println(connection);
        connection.close();

    }
}
